package com.winhxd.b2c.order.dao;

import com.winhxd.b2c.common.domain.order.condition.OrderAfterSaleCondition;
import com.winhxd.b2c.common.domain.order.model.OrderAfterSale;
import com.winhxd.b2c.common.domain.order.vo.OrderAfterSaleVO;
import com.winhxd.b2c.common.domain.order.vo.OrderInfoAfterSaleVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderAfterSaleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(OrderAfterSale record);

    int insertSelective(OrderAfterSale record);

    OrderAfterSale selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OrderAfterSale record);

    int updateByPrimaryKey(OrderAfterSale record);

    /**
     * @author zhanghuan
     * @date  2018年10月26日 下午2:11:57
     * @Description 查询售后信息
     */
    OrderAfterSale selectOrderAfterSaleByCondition(OrderAfterSaleCondition condition);

    /**
     * 根据订单列表查询售后信息（以订单为维度）
     * @param orderNoList
     * @return
     */
    List<OrderInfoAfterSaleVO> selectOrderAfterSaleByOrderList(@Param("orderNoList") List<String> orderNoList);
}